﻿@model S4Store.Models.SellerReport.HistoryModel
@{
    Layout = null;
    ViewBag.Title = "Customer";
    
    S4Store.Models.Chart.Line ChartModel = new S4Store.Models.Chart.Line();
    ChartModel.Name = "登记客户";
    ChartModel.YAxis = "登记客户";
    ChartModel.Width = 500;
    ChartModel.Height = 300;
    foreach(var m in Model.Reports){
        ChartModel.XAxis.Add(m.Month + "月");
    }
    S4Store.Models.Chart.ChartSeries series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标登记数";
    foreach(var m in Model.Reports){
        series1.Data.Add(m.SCLDDJMB);
    }
    ChartModel.Serieses.Add(series1);

    S4Store.Models.Chart.ChartSeries series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际登记数";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SCLDKHDJS);
    }
    ChartModel.IsRate = false;
    ChartModel.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel2 = new S4Store.Models.Chart.Line();
    ChartModel2.Name = "首次来店登记率";
    ChartModel2.YAxis = "首次来店登记率";
    ChartModel2.Width = 500;
    ChartModel2.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel2.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标登记率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.SCLDDJLV);
    }
    ChartModel2.Serieses.Add(series1);

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际登记率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SCLDDJLV);
    }
    ChartModel2.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel3 = new S4Store.Models.Chart.Line();
    ChartModel3.Name = "上月客户数";
    ChartModel3.YAxis = "上月客户数";
    ChartModel3.Width = 500;
    ChartModel3.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel3.XAxis.Add(m.Month+"月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "月初上月客户";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.YCSCYXKHS);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "上月客户新增订单";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SYYLKHXZDD);
    }
    ChartModel3.IsRate = false;
    ChartModel3.Serieses.Add(series1);
    ChartModel3.Serieses.Add(series2);




    S4Store.Models.Chart.Line ChartModel4 = new S4Store.Models.Chart.Line();
    ChartModel4.Name = "上月客户转化率";
    ChartModel4.YAxis = "上月客户转化率";
    ChartModel4.Width = 500;
    ChartModel4.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel4.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标客户转化率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.SYKHZHLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际客户转化率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SYKHZHLV);
    }
    ChartModel4.Serieses.Add(series1);
    ChartModel4.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel5 = new S4Store.Models.Chart.Line();
    ChartModel5.Name = "二次邀约成功率";
    ChartModel5.YAxis = "二次邀约成功率";
    ChartModel5.Width = 500;
    ChartModel5.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel5.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标二次邀约成功率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.ECYYCGLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际二次邀约成功率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.ECYYCGLV);
    }
    ChartModel5.Serieses.Add(series1);
    ChartModel5.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel6 = new S4Store.Models.Chart.Line();
    ChartModel6.Name = "试乘试驾率";
    ChartModel6.YAxis = "试乘试驾率";
    ChartModel6.Width = 500;
    ChartModel6.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel6.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标试驾率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.SCSJLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际试驾率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SCSJLV);
    }
    ChartModel6.Serieses.Add(series1);
    ChartModel6.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel7 = new S4Store.Models.Chart.Line();
    ChartModel7.Name = "商谈明细表填写率";
    ChartModel7.YAxis = "商谈明细表填写率";
    ChartModel7.Width = 500;
    ChartModel7.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel7.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标填写率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.STMXBGTXLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际填写率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.STMXBTXLV);
    }
    ChartModel7.Serieses.Add(series1);
    ChartModel7.Serieses.Add(series2);




    S4Store.Models.Chart.Line ChartModel8 = new S4Store.Models.Chart.Line();
    ChartModel8.Name = "当月客户成交率";
    ChartModel8.YAxis = "当月客户成交率";
    ChartModel8.Width = 500;
    ChartModel8.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel8.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标成交率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.DJKHCJLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际成交率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.DYDJKHCJLV);
    }
    ChartModel8.Serieses.Add(series1);
    ChartModel8.Serieses.Add(series2);




    S4Store.Models.Chart.Line ChartModel9 = new S4Store.Models.Chart.Line();
    ChartModel9.Name = "价格超限率";
    ChartModel9.YAxis = "价格超限率";
    ChartModel9.Width = 500;
    ChartModel9.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel9.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标超限率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.CXJGCJLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际超限率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.CXJGCJLV);
    }
    ChartModel9.Serieses.Add(series1);
    ChartModel9.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel10 = new S4Store.Models.Chart.Line();
    ChartModel10.Name = "订单转化率";
    ChartModel10.YAxis = "订单转化率";
    ChartModel10.Width = 500;
    ChartModel10.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel10.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标转化率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.DDJCZHLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际转化率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.DDJCZHLV);
    }
    ChartModel10.Serieses.Add(series1);
    ChartModel10.Serieses.Add(series2);


    S4Store.Models.Chart.Line ChartModel11 = new S4Store.Models.Chart.Line();
    ChartModel11.Name = "老客户推荐成交数";
    ChartModel11.YAxis = "老客户推荐成交数";
    ChartModel11.Width = 500;
    ChartModel11.Height = 300;
    ChartModel11.IsRate = false;
    foreach (var m in Model.Reports)
    {
        ChartModel11.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标成交数";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.LKHTJCGSL);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际成交数";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.DYLKHTJCJS);
    }
    ChartModel11.Serieses.Add(series1);
    ChartModel11.Serieses.Add(series2);


    S4Store.Models.Chart.Line ChartModel12 = new S4Store.Models.Chart.Line();
    ChartModel12.Name = "老客户推荐率";
    ChartModel12.YAxis = "老客户推荐率";
    ChartModel12.Width = 500;
    ChartModel12.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel12.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标推荐成交率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SellerPerformanceStandard.LKHTJCGLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际推荐成交率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.LKHTJCGLV);
    }
    ChartModel12.Serieses.Add(series1);
    ChartModel12.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel13 = new S4Store.Models.Chart.Line();
    ChartModel13.Name = "接待批次";
    ChartModel13.YAxis = "接待批次";
    ChartModel13.Width = 500;
    ChartModel13.Height = 300;
    ChartModel13.IsRate = false;
    foreach (var m in Model.Reports)
    {
        ChartModel13.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标接待批次";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SCLDJDMB);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际接待批次";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.LDJDPC);
    }
    ChartModel13.Serieses.Add(series1);
    ChartModel13.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel14 = new S4Store.Models.Chart.Line();
    ChartModel14.Name = "有效建卡数";
    ChartModel14.YAxis = "有效建卡数";
    ChartModel14.Width = 500;
    ChartModel14.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel14.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标建卡数";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.YXAKJKS);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际建卡数";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.YXAKJKS);
    }
    ChartModel14.Serieses.Add(series1);
    ChartModel14.Serieses.Add(series2);




    S4Store.Models.Chart.Line ChartModel15 = new S4Store.Models.Chart.Line();
    ChartModel15.Name = "A卡需求完整分析率";
    ChartModel15.YAxis = "分析率";
    ChartModel15.Width = 500;
    ChartModel15.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel15.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标分析率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.AKXQWZFXLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际分析率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SellerPerformanceStandard.AKXQWZFXLV);
    }
    ChartModel15.Serieses.Add(series1);
    ChartModel15.Serieses.Add(series2);



    S4Store.Models.Chart.Line ChartModel16 = new S4Store.Models.Chart.Line();
    ChartModel16.Name = "试驾未成交率";
    ChartModel16.YAxis = "未成交率";
    ChartModel16.Width = 500;
    ChartModel16.Height = 300;
    foreach (var m in Model.Reports)
    {
        ChartModel16.XAxis.Add(m.Month + "月");
    }
    series1 = new S4Store.Models.Chart.ChartSeries();
    series1.Name = "目标未成交率";
    foreach (var m in Model.Reports)
    {
        series1.Data.Add(m.SCSJCJLV);
    }

    series2 = new S4Store.Models.Chart.ChartSeries();
    series2.Name = "实际未成交率";
    foreach (var m in Model.Reports)
    {
        series2.Data.Add(m.SellerPerformanceStandard.SCSJCJLV);
    }
    ChartModel16.Serieses.Add(series1);
    ChartModel16.Serieses.Add(series2);
}
<div style="height:100%; overflow:auto">

@Html.Action("ReportBar", "Common", Model.BarModel)
<div style="position:relative; width:100%">
<div class="tabs" currentIndex="0" eventType="click">

		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>当月客户管理</span></a></li>
                    <li><a href="javascript:;"><span>留存客户管理</span></a></li>
                    <li><a href="javascript:;"><span>流程执行管理</span></a></li>
                    <li><a href="javascript:;"><span>销售业绩管理</span></a></li>
                    <li><a href="javascript:;"><span>保有客户管理</span></a></li>
				</ul>
			</div>
		</div>

   <div class="tabsContent" >
	<div>
           <table>
              <tr>
                 <td>@Html.Partial("../Chart/Line", ChartModel13)</td>
                 <td>&nbsp;</td>
                 <td>@Html.Partial("../Chart/Line", ChartModel)</td>
    	      </tr>
              <tr>
         	     <td>@Html.Partial("../Chart/Line", ChartModel2)</td>
		     <td>&nbsp;</td>
		     <td>&nbsp;</td>
	          </tr>
	   </table>
	 </div>
          <div>
 	   <table>
   	      <tr>
       		 <td>@Html.Partial("../Chart/Line", ChartModel3)</td>
		 <td>&nbsp;</td>
   	         <td>@Html.Partial("../Chart/Line", ChartModel4)</td>
	      </tr>
	      <tr>
         	 <td>@Html.Partial("../Chart/Line", ChartModel5)</td>
		 <td>&nbsp;</td>
		 <td>&nbsp;</td>
	      </tr>
	    </table>
	   </div> 

          <div>
 	   <table>
   	      <tr>
       		 <td>@Html.Partial("../Chart/Line", ChartModel6)</td>
		 <td>&nbsp;</td>
   	         <td>@Html.Partial("../Chart/Line", ChartModel7)</td>
	      </tr>
	      <tr>
         	 <td>@Html.Partial("../Chart/Line", ChartModel15)</td>
		 <td>&nbsp;</td>
		 <td></td>
	      </tr>
	    </table>
	   </div> 


          <div>
 	   <table>
   	      <tr>
       		 <td>@Html.Partial("../Chart/Line", ChartModel16)</td>
		 <td>&nbsp;</td>
   	         <td>@Html.Partial("../Chart/Line", ChartModel8)</td>
	      </tr>
	      <tr>
         	 <td>@Html.Partial("../Chart/Line", ChartModel9)</td>
		 <td>&nbsp;</td>
		 <td>@Html.Partial("../Chart/Line", ChartModel10)</td>
	      </tr>
	    </table>
	   </div> 
	  
           <div>
           <table>
              <tr>
                 <td>@Html.Partial("../Chart/Line", ChartModel11)</td>
                 <td>&nbsp;</td>
                 <td>@Html.Partial("../Chart/Line", ChartModel12)</td>
    	      </tr>
	   </table>
	 </div>
    </div>


		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>

	</div>

 
    
</div>
</div>

